package com.ysqcould.content.domain;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 广告对象 t_advertising
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
@TableName("t_advertising")
public class Advertising extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 广告图片地址 */
    @Excel(name = "广告图片地址")
    private String pcUrl;

    /** 链接地址 */
    @Excel(name = "链接地址")
    private String linkUrl;

    /** 位置：1首页，2新闻底部 */
    @Excel(name = "位置：1首页，2新闻底部")
    private Long place;

    /** 排序 */
    @Excel(name = "排序")
    private Long serial;

    /** 展示用户类型（首页使用）：0普通用户，1协会用户 */
    @Excel(name = "展示用户类型", readConverterExp = "首=页使用")
    private Long showType;

    /** 文章底部广告投放类型（文章底部专用）多个用；分割（例）：  ;1;2; */
    @Excel(name = "文章底部广告投放类型", readConverterExp = "文=章底部专用")
    private String pressType;

    /**
     * 文章底部广告投放类型 数组
     */
    @TableField(exist = false)
    private String[] pressTypeList;
    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public String[] getPressTypeList() {
        return pressTypeList;
    }

    public void setPressTypeList(String[] pressTypeList) {
        this.pressTypeList = pressTypeList;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setPcUrl(String pcUrl) 
    {
        this.pcUrl = pcUrl;
    }

    public String getPcUrl() 
    {
        return pcUrl;
    }
    public void setLinkUrl(String linkUrl) 
    {
        this.linkUrl = linkUrl;
    }

    public String getLinkUrl() 
    {
        return linkUrl;
    }
    public void setPlace(Long place) 
    {
        this.place = place;
    }

    public Long getPlace() 
    {
        return place;
    }

    public void setSerial(Long serial) 
    {
        this.serial = serial;
    }

    public Long getSerial() 
    {
        return serial;
    }
    public void setShowType(Long showType) 
    {
        this.showType = showType;
    }

    public Long getShowType() 
    {
        return showType;
    }
    public void setPressType(String pressType) 
    {
        this.pressType = pressType;
    }

    public String getPressType() 
    {
        return pressType;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("asId", getAsId())
            .append("pcUrl", getPcUrl())
            .append("linkUrl", getLinkUrl())
            .append("place", getPlace())
            .append("serial", getSerial())
            .append("showType", getShowType())
            .append("pressType", getPressType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
